package org.petstore.service;

import org.petstore.domain.Category;
import org.petstore.domain.Item;
import org.petstore.domain.Product;

import java.util.List;

public interface CatalogService {
    /**
     * description 获取所有的大类
     *
     * @return List<Category>
     * @author huangzhangyan
     * @date 2021/11/1 23:09
     */
    List<Category> getCategoryList();

    Category getCategory(String categoryId);

    Product getProduct(String productId);

    List<Product> getProductListByCategory(String categoryId);

    List<Product> searchProductList(String keyword);

    List<Item> getItemListByProduct(String productId);

    Item getItem(String itemId);

    boolean isItemInStock(String itemId);

    String findProductListAjax(String keyword);
}
